<table class="member-grid">
  <thead>
    <tr>
      <th><{t}>退款申请单号<{/t}></th>
      <th><{t}>订单号<{/t}></th>
      <th><{t}>金额<{/t}></th>
      <th><{t}>申请时间<{/t}></th>
      <th><{t}>处理状态<{/t}></th>
      <th><{t}>操作<{/t}></th>
    </tr>
  </thead>
  <{if $refund}>
  <{foreach from=$refund item=refund}>
  <tbody>
    <tr>
      <td class="order" width="20%"><{$refund.refund_apply_bn}></td>
      <td class="order" width="15%"><{$refund.order_id}></td>
      <td class="price"><{$refund.money|cur_odr:$refund.money:false:true}></td>
      <td class="datetime"><{$refund.create_time|cdate:FDATE_STIME}></td>
      <td class="status">
        <{switch from=$refund.status}>
        <{case value='0'}><{t}>待处理<{/t}>
        <{case value='1'}><{t}>已拒绝<{/t}>
        <{case value='2'}><{t}>已退款<{/t}>
        <{/switch}>
      </td>
      <td class="actions" valign="top" rowspan="2">
        <a href="<{link app=b2c ctl=site_member act=refund_detail arg0=$refund.refund_apply_bn}>" ><{t}>查看详情<{/t}></a>
      </td>
    </tr>
    <tr class="goods-row">
    
    <td colspan="5">
        <ul class="member-piclist">
          <{if $refund.order_info.goods_items}>
	          <{foreach from=$refund.order_info.goods_items item=item_goods name=goods_item}>
		          <!--goods-->
		          <{if $item_goods.product}>
		          <li class="goods-item">
		            <div class="goods-pic" data-tips="<{$item_goods.product.name}>&nbsp;<{if $item_goods.product.attr}><{$item_goods.product.attr|spec_desc}><{/if}>&nbsp;<{$item_goods.product.quantity}>">
		              <a href="<{$item_goods.product.link_url}>"><img src="<{$item_goods.product.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$item_goods.product.name}>&nbsp;<{$item_goods.product.attr}>" data-img-zoom="true"></a>
		            </div>
		          </li>
		          <{/if}>
		          <!--adjunct-->
		          <{if $item_goods.adjunct_items}>
		          <{foreach from=$item_goods.adjunct_items item=item_adjunct name=adjunct_item}>
		          <li class="goods-item">
		            <div class="goods-pic" data-tips="<{$item_adjunct.name}><{if $item_adjunct.attr}>&nbsp;<{$item_adjunct.attr}><{/if}>&nbsp;<{$item_adjunct.quantity}>">
		              <span class="label-important"><{t}>配<{/t}></span>
		              <a href="<{link app=b2c ctl=site_product act=index arg0=$item_adjunct.products.product_id}>"><img src="<{$item_adjunct.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$item_adjunct.name}> <{$item_adjunct.attr}>" data-img-zoom="true"></a>
		            </div>
		          </li>
		          <{/foreach}>
		          <{/if}>
		          <!--gift-->
		          <{if $item_goods.gift_items}>
		          <{foreach from=$item_goods.gift_items item=item_gift name=gift_item}>
		          <li class="goods-item">
		            <div class="goods-pic" data-tips="<{$item_gift.name}>&nbsp;<{if $item_gift.attr}><{$item_gift.attr}><{/if}>&nbsp;<{$item_gift.quantity}>">
		              <span class="label-important"><{t}>赠<{/t}></span>
		              <a href="<{$item_gift.link_url}>"><img src="<{$item_gift.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$item_adjunct.name}> <{$item_adjunct.attr}>" data-img-zoom="true"></a>
		            </div>
		          </li>
		          <{/foreach}>
		          <{/if}>
              <{/foreach}>
          <{/if}>
          
          <!-- gift -->
          <{if $refund.order_info.order.gift_items}>
          <{foreach from=$refund.order_info.order.gift_items item=item_gift name=gift_item}>
          <li class="goods-item">
            <div class="goods-pic" data-tips="<{$item_gift.name}>&nbsp;<{if $item_gift.attr}><{$item_gift.attr}><{/if}>&nbsp;<{$item_gift.quantity}>">
              <span class="label-important"><{t}>赠<{/t}></span>
              <a href="<{$item_gift.link_url}>"><img src="<{$item_gift.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$item_adjunct.name}> <{$item_adjunct.attr}>" data-img-zoom="true"></a>
            </div>
          </li>
          <{/foreach}>
          <{/if}>
          
          <{if $refund.order_info.gift.gift_items}>
          <{foreach from=$refund.order_info.gift.gift_items item=item_gift name=gift_item}>
          <li class="goods-item">
            <div class="goods-pic" data-tips="<{$item_gift.name}>&nbsp;<{if $item_gift.attr}><{$item_gift.attr}><{/if}>&nbsp;<{$item_gift.quantity}>">
              <span class="label-important"><{t}>赠<{/t}></span>
              <a href="<{$item_gift.link_url}>"><img src="<{$item_gift.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$item_adjunct.name}> <{$item_adjunct.attr}>" data-img-zoom="true"></a>
            </div>
          </li>
          <{/foreach}>
          <{/if}>

          <!-- extends -->
          <{if $refund.order_info.extends_items}>
          <{foreach from=$refund.order_info.extends_items item=item_extends name=item_extends}>
          <{$item_extends}>
          <{/foreach}>
          <{/if}>
        </ul>
      </td>
      
    </tr>
  </tbody>
  <{/foreach}>
  <{else}>
  <tbody class="first">
    <tr class="no-information"><td colspan="6">暂无申请退款记录</td></tr>
  </tbody>
  <{/if}>
</table>
